//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("Unit1.cpp", Form1);
USEFORM("FrmPass.cpp", FormPass);
USEFORM("FrmUser.cpp", FormUser);
USEFORM("NewSecretary.cpp", FormNewSecr);
USEFORM("FrmGram.cpp", FormGram);
USEFORM("FrmNewSpoud.cpp", FormNewSpoud);
USEFORM("FrmNewSecdSpoud.cpp", FormSecdSpoud);
USEFORM("FrmSpoud.cpp", FormSpoud);
USEFORM("FrmMathitolog.cpp", FormMathitolog);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TForm1), &Form1);
                 Application->CreateForm(__classid(TFormPass), &FormPass);
                 Application->CreateForm(__classid(TFormUser), &FormUser);
                 Application->CreateForm(__classid(TFormNewSecr), &FormNewSecr);
                 Application->CreateForm(__classid(TFormGram), &FormGram);
                 Application->CreateForm(__classid(TFormNewSpoud), &FormNewSpoud);
                 Application->CreateForm(__classid(TFormSecdSpoud), &FormSecdSpoud);
                 Application->CreateForm(__classid(TFormSpoud), &FormSpoud);
                 Application->CreateForm(__classid(TFormMathitolog), &FormMathitolog);
                 Application->Run();
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------
